from django.http import JsonResponse
from .tasks import add, subtraction


def task1(request):
    """task1"""
    add.delay(4, 4)
    return JsonResponse({'msg': 'success'})


def task2(request):
    """task2"""
    subtraction.delay(9, 5)
    return JsonResponse({'msg': 'success'})